Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove settings only on app uninstall #6024

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

rablador
Copy link
Contributor

@rablador rablador commented Mar 25, 2024

We should not remove any settings when a user logs out or explicitly deletes an account. Or rather, only app uninstall should trigger a removal of app settings.


This change is Reviewable

@rablador rablador added the iOS Issues related to iOS label Mar 25, 2024
@rablador rablador requested review from buggmagnet and acb-mv March 25, 2024 14:04
Copy link

linear bot commented Mar 25, 2024

Copy link
Contributor

@buggmagnet buggmagnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rablador)


ios/MullvadVPN/AppDelegate.swift line 507 at r1 (raw file):

                self.accessMethodRepository.reloadWithDefaultsAfterDataRemoval()
                try? self.relayCacheTracker.refreshCachedRelays()

Why do we force a cache read here ? Or rather, what behaviour did we observe after removing settings that led to writing this line ?

@buggmagnet buggmagnet force-pushed the remove-settings-only-on-app-uninstall-ios-577 branch 2 times, most recently from 4dccd01 to efa37d6 Compare March 28, 2024 12:36
@buggmagnet buggmagnet force-pushed the remove-settings-only-on-app-uninstall-ios-577 branch from efa37d6 to 11a2609 Compare March 28, 2024 13:08
Copy link
Contributor

@buggmagnet buggmagnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rablador)


ios/MullvadVPN/AppDelegate.swift line 507 at r1 (raw file):

Previously, buggmagnet wrote…

Why do we force a cache read here ? Or rather, what behaviour did we observe after removing settings that led to writing this line ?

This was discussed offline

Copy link
Contributor

@acb-mv acb-mv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rablador)

@buggmagnet buggmagnet merged commit ba779e9 into main Mar 28, 2024
6 of 7 checks passed
@buggmagnet buggmagnet deleted the remove-settings-only-on-app-uninstall-ios-577 branch March 28, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS Issues related to iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants